package service.impl;

import dao.RoomDao;
import dao.impl.RoomDaoImpl;
import entity.Room;
import service.RoomService;

import java.util.List;

public class RoomServiceImpl implements RoomService {
    RoomDao roomDao = new RoomDaoImpl();
    @Override
    public List<Room> info() {
        return roomDao.info();
    }

    @Override
    public int delete(int roomId) {
        return roomDao.delete(roomId);
    }

    @Override
    public int inset(Room room) {
        return roomDao.inset(room);
    }
}
